<?php
namespace app\serverfavorite\validate;
use \app\manage\validate\BaseValidate;

class Favorite extends BaseValidate
{
    
	protected $rule =   [
        'id' => ['integer','gt'=>0],
		'user_id'  => ['integer','gt'=>0],
        'cate_id'=>['integer','gt'=>0],
        'obj_id'=>['integer','gt'=>0],
        'page'=>['integer','gt'=>0],
        'listRows'=>['integer','gt'=>0,'elt'=>50],
    ];

    protected $message  =   [
        'id' => '没有要选择的元素',
        'user_id' => '用户user_id为大于0的整数',
        'cate_id' => '分类cate_id为大于0的整数',
        'obj_id' => 'obj_id为大于0的整数',
        'page' => '当前页为大于0的整数',
        'listRows' => '每页显示的条数范围为1-50',
    ];

}